package 抽象类和接口的区别;

public class alarmdoorDemo extends Door implements alarmdoor{

        public void alarm() {
            System.out.println("打开警报");
        }
        public void open(){
            System.out.println("开门");
        }
        public void close(){
            System.out.println("关门");
        }
    }
